<?php 
    class PublicDataBLL{
        //获取部门列表
        public function getDepartmentList(){
            $publicDataDAL=new PublicDataDAL();
            $result=$publicDataDAL->getDepartmentList();

            return $result;
        }

        //获取角色列表
        public function getRoleList(){
            $publicDataDAL=new PublicDataDAL();
            $result=$publicDataDAL->getRoleList();

            return $result;
        }

        //获取专业列表
        public function getMajorList(){
            $publicDataDAL=new PublicDataDAL();
            $result=$publicDataDAL->getMajorList();

            return $result;
        }

        //获取专业名称
        public function getMajorName($major_id){
            $PublicDataDAL=new PublicDataDAL();
            $result=$PublicDataDAL->getMajorName($major_id);

            return $result;
        }

        //获取年级列表
        public function getGradeList(){
            $publicDataDAL=new PublicDataDAL();
            $result=$publicDataDAL->getGradeList();

            return $result;
        }

        public function getClassList(){
            $publicDataDAL=new PublicDataDAL();
            $result=$publicDataDAL->getClassList();

            return $result;
        }

        //获取公寓列表
        public function getApartmentList($property=0){
            $publicDataDAL=new PublicDataDAL();
            $result=$publicDataDAL->getApartmentList($property);

            return $result;
        }
        
        //获取辅导员年级、专业、班级信息
        public function getInstructorAllocateList($instructorID){
            $PublicDataDAL=new PublicDataDAL();
            $result=$PublicDataDAL->getInstructorAllocateList($instructorID);
            return $result;
        }

        //获取辅导员系部列表
        public function getInstructorDepartment($instructorID){
            $PublicDataDAL=new PublicDataDAL();
            $result=$PublicDataDAL->getInstructorDepartment($instructorID);
            return $result;
        }

        //获取辅导员年级列表
        public function getInstructorGradeList($instructorID){
            $PublicDataDAL=new PublicDataDAL();
            $result=$PublicDataDAL->getInstructorGradeList($instructorID);
            return $result;
        }
        //获取辅导员专业列表
        public function getInstructorMajorList($instructorID){
            $PublicDataDAL=new PublicDataDAL();
            $result=$PublicDataDAL->getInstructorMajorList($instructorID);
            return $result;
        }
        //获取辅导员班级列表
        public function getInstructorClassList($instructorID){
            $PublicDataDAL=new PublicDataDAL();
            $result=$PublicDataDAL->getInstructorClassList($instructorID);
            return $result;
        }

        //获取学生信息
        public function getStudentInformation($student_id){
            $PublicDataDAL=new PublicDataDAL();
            $result=$PublicDataDAL->getStudentInformation($student_id);
            return $result;
        }
        //获取学生宿舍信息
        public function getStudentDormitoryInfo($student_id){
            $PublicDataDAL=new PublicDataDAL();
            $result=$PublicDataDAL->getStudentDormitoryInfo($student_id);
            return $result;
        }

        public function getInstructorApartmentList($instructorID){
            $PublicDataDAL=new PublicDataDAL();
            $result=$PublicDataDAL->getInstructorApartmentList($instructorID);
            return $result;
        }

        public function getInstructorAllocatedBeds($instructorID,$apartment,$dormitoryID){
            $PublicDataDAL=new PublicDataDAL();
            $result=$PublicDataDAL->getInstructorAllocatedBeds($instructorID,$apartment,$dormitoryID);
            return $result;
        }

    }
    
?>